package com.itlong.cloud.equip.sdk;

import com.itlong.cloud.POJO.DTO.sdk.CloudTalkDeviceGetPageDTO;
import com.itlong.cloud.POJO.VO.sdk.CloudTalkDeviceListPageVO;
import com.itlong.cloud.utils.page.Page;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

/**
 * <desc>
 *      云对讲SDK接口暴露。
 * <desc/>
 *
 * @createDate 2018-05-17.
 */
@FeignClient(name = "equip-service")
public interface ICloudTalkSDKServiceClient {

     /**
      * <desc>
      *      获取项目云对讲设备列表。
      * <desc/>
      *
      * @param  pageDTO
      * @return
      * @author shengen.T
      * @createDate 2018-05-17
      */
     @RequestMapping(path = "/cloud/intercom/server/getDeviceList",method = RequestMethod.POST)
    Page<CloudTalkDeviceListPageVO> getCloudTalkDeviceList(@RequestBody CloudTalkDeviceGetPageDTO pageDTO) throws Exception;
}
